Optimal. Leaf size=139 \[ -\frac{3 b^2 \left (a+b \tanh ^{-1}(c x)\right )}{2 c (c x+1)}+\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{4 c}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{2 c (c x+1)}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{2 c}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{c (c x+1)}-\frac{3 b^3}{4 c (c x+1)}+\frac{3 b^3 \tanh ^{-1}(c x)}{4 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.193227, antiderivative size = 139, normalized size of antiderivative = 1., number of steps used = 11, number of rules used = 6, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {5928, 5926, 627, 44, 207, 5948} \[ -\frac{3 b^2 \left (a+b \tanh ^{-1}(c x)\right )}{2 c (c x+1)}+\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{4 c}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{2 c (c x+1)}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{2 c}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{c (c x+1)}-\frac{3 b^3}{4 c (c x+1)}+\frac{3 b^3 \tanh ^{-1}(c x)}{4 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5928
Rule 5926
Rule 627
Rule 44
Rule 207
Rule 5948
Rubi steps
\begin{align*} \int \frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{(1+c x)^2} \, dx &=-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{c (1+c x)}+(3 b) \int \left (\frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{2 (1+c x)^2}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{2 \left (-1+c^2 x^2\right )}\right ) \, dx\\ &=-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{c (1+c x)}+\frac{1}{2} (3 b) \int \frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{(1+c x)^2} \, dx-\frac{1}{2} (3 b) \int \frac{\left (a+b \tanh ^{-1}(c x)\right )^2}{-1+c^2 x^2} \, dx\\ &=-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{2 c (1+c x)}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{2 c}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{c (1+c x)}+\left (3 b^2\right ) \int \left (\frac{a+b \tanh ^{-1}(c x)}{2 (1+c x)^2}-\frac{a+b \tanh ^{-1}(c x)}{2 \left (-1+c^2 x^2\right )}\right ) \, dx\\ &=-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{2 c (1+c x)}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{2 c}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{c (1+c x)}+\frac{1}{2} \left (3 b^2\right ) \int \frac{a+b \tanh ^{-1}(c x)}{(1+c x)^2} \, dx-\frac{1}{2} \left (3 b^2\right ) \int \frac{a+b \tanh ^{-1}(c x)}{-1+c^2 x^2} \, dx\\ &=-\frac{3 b^2 \left (a+b \tanh ^{-1}(c x)\right )}{2 c (1+c x)}+\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{4 c}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{2 c (1+c x)}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{2 c}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{c (1+c x)}+\frac{1}{2} \left (3 b^3\right ) \int \frac{1}{(1+c x) \left (1-c^2 x^2\right )} \, dx\\ &=-\frac{3 b^2 \left (a+b \tanh ^{-1}(c x)\right )}{2 c (1+c x)}+\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{4 c}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{2 c (1+c x)}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{2 c}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{c (1+c x)}+\frac{1}{2} \left (3 b^3\right ) \int \frac{1}{(1-c x) (1+c x)^2} \, dx\\ &=-\frac{3 b^2 \left (a+b \tanh ^{-1}(c x)\right )}{2 c (1+c x)}+\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{4 c}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{2 c (1+c x)}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{2 c}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{c (1+c x)}+\frac{1}{2} \left (3 b^3\right ) \int \left (\frac{1}{2 (1+c x)^2}-\frac{1}{2 \left (-1+c^2 x^2\right )}\right ) \, dx\\ &=-\frac{3 b^3}{4 c (1+c x)}-\frac{3 b^2 \left (a+b \tanh ^{-1}(c x)\right )}{2 c (1+c x)}+\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{4 c}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{2 c (1+c x)}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{2 c}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{c (1+c x)}-\frac{1}{4} \left (3 b^3\right ) \int \frac{1}{-1+c^2 x^2} \, dx\\ &=-\frac{3 b^3}{4 c (1+c x)}+\frac{3 b^3 \tanh ^{-1}(c x)}{4 c}-\frac{3 b^2 \left (a+b \tanh ^{-1}(c x)\right )}{2 c (1+c x)}+\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{4 c}-\frac{3 b \left (a+b \tanh ^{-1}(c x)\right )^2}{2 c (1+c x)}+\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{2 c}-\frac{\left (a+b \tanh ^{-1}(c x)\right )^3}{c (1+c x)}\\ \end{align*}
Mathematica [A] time = 0.148799, size = 198, normalized size = 1.42 \[ \frac{-3 b \left (2 a^2+2 a b+b^2\right ) (c x+1) \log (1-c x)-12 b \left (2 a^2+2 a b+b^2\right ) \tanh ^{-1}(c x)+6 a^2 b \log (c x+1)+6 a^2 b c x \log (c x+1)-12 a^2 b-8 a^3+6 a b^2 \log (c x+1)+6 a b^2 c x \log (c x+1)+6 b^2 (2 a+b) (c x-1) \tanh ^{-1}(c x)^2-12 a b^2+3 b^3 \log (c x+1)+3 b^3 c x \log (c x+1)+4 b^3 (c x-1) \tanh ^{-1}(c x)^3-6 b^3}{8 c (c x+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.377, size = 1895, normalized size = 13.6 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.06134, size = 714, normalized size = 5.14 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.02394, size = 354, normalized size = 2.55 \begin{align*} \frac{{\left (b^{3} c x - b^{3}\right )} \log \left (-\frac{c x + 1}{c x - 1}\right )^{3} - 16 \, a^{3} - 24 \, a^{2} b - 24 \, a b^{2} - 12 \, b^{3} - 3 \,{\left (2 \, a b^{2} + b^{3} -{\left (2 \, a b^{2} + b^{3}\right )} c x\right )} \log \left (-\frac{c x + 1}{c x - 1}\right )^{2} - 6 \,{\left (2 \, a^{2} b + 2 \, a b^{2} + b^{3} -{\left (2 \, a^{2} b + 2 \, a b^{2} + b^{3}\right )} c x\right )} \log \left (-\frac{c x + 1}{c x - 1}\right )}{16 \,{\left (c^{2} x + c\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (a + b \operatorname{atanh}{\left (c x \right )}\right )^{3}}{\left (c x + 1\right )^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.19108, size = 279, normalized size = 2.01 \begin{align*} \frac{1}{16} \,{\left (\frac{b^{3}}{c} - \frac{2 \, b^{3}}{{\left (c x + 1\right )} c}\right )} \log \left (\frac{1}{\frac{2}{c x + 1} - 1}\right )^{3} + \frac{3}{16} \,{\left (\frac{2 \, a b^{2} + b^{3}}{c} - \frac{2 \,{\left (2 \, a b^{2} + b^{3}\right )}}{{\left (c x + 1\right )} c}\right )} \log \left (\frac{1}{\frac{2}{c x + 1} - 1}\right )^{2} - \frac{3 \,{\left (2 \, a^{2} b + 2 \, a b^{2} + b^{3}\right )} \log \left (-\frac{2}{c x + 1} + 1\right )}{8 \, c} - \frac{3 \,{\left (2 \, a^{2} b + 2 \, a b^{2} + b^{3}\right )} \log \left (\frac{1}{\frac{2}{c x + 1} - 1}\right )}{4 \,{\left (c x + 1\right )} c} - \frac{4 \, a^{3} + 6 \, a^{2} b + 6 \, a b^{2} + 3 \, b^{3}}{4 \,{\left (c x + 1\right )} c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]